package com.beardedhen.harmonybootstrap.api.view;

import com.beardedhen.harmonybootstrap.api.attributes.BootstrapBrand;
import ohos.global.resource.NotExistException;
import ohos.global.resource.WrongTypeException;

import java.io.IOException;

/**
 * Views which implement this interface change their color according to the given Bootstrap Brand.
 */
public interface BootstrapBrandView {

    /**
     * Changes the color of the view to match the given Bootstrap Brand
     *
     * @param bootstrapBrand the bootstrap brand
     * @throws NotExistException  the not exist exception
     * @throws WrongTypeException the wrong type exception
     * @throws IOException        the io exception
     */
    void setBootstrapBrand( BootstrapBrand bootstrapBrand) throws NotExistException, WrongTypeException, IOException;

    /**
     * Gets bootstrap brand.
     *
     * @return the current Bootstrap Brand
     */
    BootstrapBrand getBootstrapBrand();

}